import pandas as pd
from flask import Flask, render_template

df = pd.read_csv('data/中国疫情.csv')
province = df['地区'].tolist()
all = df['累计'].tolist()

app = Flask(__name__)


@app.route('/')
def index():
    return render_template('各省份累计确诊折线图.html', province=province, all=all)


if __name__ == '__main__':
    app.run(debug=True)
